# -*- coding: utf-8 -*-
import re
from common import get_from_bd
from common import sql_script


def main():
    # f = open("./error_word.txt")
    f = open("./error2.txt")
    allist = []
    for line in f:
        # word = line.strip()
        word = line.split()[1]
        # get_from_bd.get_audio(word, "/Users/stack/python/python3721/error2")
        allist.append(word)

    for w in list(set(allist)):
        sql_script.modify_word_voice(w, "60.205.94.133", "bd")
if __name__ == '__main__':
    main()
